package ltd.hxya.novel.analysis.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import ltd.hxya.novel.common.constant.SecurityConstant;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig implements RequestInterceptor{

    @Override
    public void apply(RequestTemplate template) {
        template.header(SecurityConstant.IS_AUTHENTICATION,"true");
    }
}
